-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
#7311 choice_value callback argument can be null #7775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Just for the record. This fixes #7311 |
@@ -11,6 +11,9 @@ configure the value that will be sent in the API request). | |||
This can be a callable or a property path. See `choice_label`_ for similar usage. | |||
If ``null`` is used, an incrementing integer is used as the name. | |||
|
|||
If you are using a callable to populate choice_value, you need to check for the | |||
case that the value of the field may be null. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null
should be enclosed with two backticks like this:
[...] field may be ``null``.
@@ -11,6 +11,9 @@ configure the value that will be sent in the API request). | |||
This can be a callable or a property path. See `choice_label`_ for similar usage. | |||
If ``null`` is used, an incrementing integer is used as the name. | |||
|
|||
If you are using a callable to populate choice_value, you need to check for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
choice_value
should also be enclosed with double backticks
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 @michaellenahan thanks for your first contribution!
I've made a minor fix (we need two backticks instead of three) but your pull request was perfect otherwise. Thanks.
Thank you @michaellenahan. |
… Lenahan, javiereguiluz) This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7775). Discussion ---------- #7311 choice_value callback argument can be null This is my first contribution to Symfony. Thank you @Deltachaos for your help today at the Hackday in Cologne. Commits ------- bf604e5 Fixed a syntax issue da1bbb2 Use backticks c274800 #7311 choice_value callback argument can be null
This is my first contribution to Symfony. Thank you @Deltachaos for your help today at the Hackday in Cologne.